<?php 
if(isset($javascript)): 
        echo $javascript->link('jquery-1.2.6.min.js'); 
        echo $javascript->link('jquery.imgareaselect-0.4.2.min.js'); 
endif; 
?> 
 <?php 
      echo $this->Form->create('Tweet', array('action'=>'upload',"enctype" => "multipart/form-data"));
      echo $this->Form->input('text');
      echo $this->Form->input('image', array("type" => "file"));
      echo $this->Form->submit('Tweet');
      echo $this->Form->end();
?>

      
